import React from 'react';
import { connect } from 'dva';
import PageContent from '../../components/PageContent';
import CaseTable from './CaseTable';

@connect(({ casemanage, loading }) => ({ casemanage, loading: loading.models.casemanage }))
class CaseManage extends React.Component {
  render() {
    const { dispatch, loading, casemanage: { caseinfo, testreportinfo, projectlist } } = this.props;
    console.log("ddddd")
    const caseTableProps = {
      dispatch,
      loading,
      caseinfo,
      testreportinfo,
      projectlist,
    };
    return (
      <PageContent title="CASE管理" >
        <CaseTable {...caseTableProps} />
      </PageContent>
    );
  }
}

export default CaseManage;
